<html>
<head><meta charset="utf-8"><title>Feature not listed in compiler/rustc_feature · t-libs · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/index.html">t-libs</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/Feature.20not.20listed.20in.20compiler.2Frustc_feature.html">Feature not listed in compiler/rustc_feature</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="222516597"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/Feature%20not%20listed%20in%20compiler/rustc_feature/near/222516597" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jacob Pratt <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/Feature.20not.20listed.20in.20compiler.2Frustc_feature.html#222516597">(Jan 13 2021 at 00:39)</a>:</h4>
<p>Hello. I was just going to put together my first stabilization PR, but ran into a problem when following <a href="https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr">the instructions</a>. One of the first steps is to move to feature from "active" to "accepted". Only one problem — the feature isn't listed. I've confirmed the feature does in fact work on nightly, so I'm not sure what's going on. The feature in question is <code>unsigned_abs</code> if it matters.</p>



<a name="222516825"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/Feature%20not%20listed%20in%20compiler/rustc_feature/near/222516825" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jacob Pratt <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/Feature.20not.20listed.20in.20compiler.2Frustc_feature.html#222516825">(Jan 13 2021 at 00:42)</a>:</h4>
<p>Just ran across the t-compiler stream. I'll post there, as it seems more appropriate in that location.</p>



<a name="222521369"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/Feature%20not%20listed%20in%20compiler/rustc_feature/near/222521369" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> scottmcm <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/Feature.20not.20listed.20in.20compiler.2Frustc_feature.html#222521369">(Jan 13 2021 at 01:40)</a>:</h4>
<p>that feature-gate listing is only for compiler features.  You don't need to touch it for a library stabilization</p>



<a name="222521549"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/Feature%20not%20listed%20in%20compiler/rustc_feature/near/222521549" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> scottmcm <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/Feature.20not.20listed.20in.20compiler.2Frustc_feature.html#222521549">(Jan 13 2021 at 01:42)</a>:</h4>
<p>A library stabilization PR is usually pretty simple; here's an example of one I did a while back in case it helps: <a href="https://github.com/rust-lang/rust/pull/58074/files">https://github.com/rust-lang/rust/pull/58074/files</a></p>



<a name="222526981"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/Feature%20not%20listed%20in%20compiler/rustc_feature/near/222526981" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jacob Pratt <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/Feature.20not.20listed.20in.20compiler.2Frustc_feature.html#222526981">(Jan 13 2021 at 03:03)</a>:</h4>
<p>They informed me of that over there, thanks! One question, though. I'm trying to stabilize <code>rem_euclid</code> and similar as <code>const fn</code>. Apparently the <code>#[allow_internal_unstable]</code> attribute can only be applied to a macro? How would one go about stabilizing something that depends on an intrinsic (not publicly, of course)? Must the intrinsic itself be "stabilized" as <code>const fn</code>, despite the fact that intrinsics are never actually stable?</p>



<a name="222533993"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/Feature%20not%20listed%20in%20compiler/rustc_feature/near/222533993" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> scottmcm <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/Feature.20not.20listed.20in.20compiler.2Frustc_feature.html#222533993">(Jan 13 2021 at 05:00)</a>:</h4>
<p>I'm not sure how const-stabilization works for intrinsics, sorry.</p>



<a name="222534016"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/Feature%20not%20listed%20in%20compiler/rustc_feature/near/222534016" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> scottmcm <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/Feature.20not.20listed.20in.20compiler.2Frustc_feature.html#222534016">(Jan 13 2021 at 05:00)</a>:</h4>
<p>You might ask in <a class="stream" data-stream-id="146212" href="/#narrow/stream/146212-t-compiler.2Fconst-eval">#t-compiler/const-eval</a> -- they'd probably have the best current answer.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>